package com.sinooceangroup.capital.consumer.controller;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Normal
 *
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/7/21 10:06
 */
@RestController
public class NormalController {

    @GetMapping("/api/normal")
    @HystrixCommand(fallbackMethod = "normalFallback")
    public String normal(){
        return "Normal Controller Method--->> ^O^ ";
    }

    public String normalFallback(){
        return "normalFallback--->>:-D";
    }
}
